const Joi = require("joi");

const id = Joi.number().integer().min(1).required();
const is_show = Joi.number().integer().valid(0, 1);
const is_delete = Joi.number().integer().valid(0, 1);
const value = Joi.string().min(1).max(30).required();

// 查询数据
exports.search_Schema = {
	params: {
		value
	}
};

// 是否展示验证
exports.isShow_Schema = {
	body: {
		is_show,
		id
	}
};

//软删除验证
exports.softDel_Schema = {
	body: {
		is_delete,
		id
	}
};

//删除数据验证
exports.del_Schema = {
	params: {
		id
	}
};